package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户协议管理对象 useragreement
 *
 * @author ruoyi
 * @date 2024-10-30
 */
public class Useragreement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** ID */
    @Excel(name = "ID")
    private String numbering;

    /** 标题 */
    @Excel(name = "标题")
    private String classification;

    /** 协议编码 */
    @Excel(name = "协议编码")
    private String protocol;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishdate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 协议内容 */
    @Excel(name = "协议内容")
    private String contentagreement;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNumbering(String numbering)
    {
        this.numbering = numbering;
    }

    public String getNumbering()
    {
        return numbering;
    }
    public void setClassification(String classification)
    {
        this.classification = classification;
    }

    public String getClassification()
    {
        return classification;
    }
    public void setProtocol(String protocol)
    {
        this.protocol = protocol;
    }

    public String getProtocol()
    {
        return protocol;
    }
    public void setPublishdate(Date publishdate)
    {
        this.publishdate = publishdate;
    }

    public Date getPublishdate()
    {
        return publishdate;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setContentagreement(String contentagreement)
    {
        this.contentagreement = contentagreement;
    }

    public String getContentagreement()
    {
        return contentagreement;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("numbering", getNumbering())
            .append("classification", getClassification())
            .append("protocol", getProtocol())
            .append("publishdate", getPublishdate())
            .append("status", getStatus())
            .append("contentagreement", getContentagreement())
            .toString();
    }
}
